<!--
* @description 
* @fileName ranking.vue
* @author huangyu
* @date 2023/03/22 10:44:41
!-->
<template>
    <div>
        <el-button type="primary" @click="clickAdd">新增数据</el-button>

        <el-dialog :title="userForm._id?'编辑数据':'新增数据'" :visible.sync="dialogUserForm" v-if="dialogUserForm" v-dialogDrag width="650px">
            <el-form label-width="120px">
                <el-form-item label="游戏名称">
                    <el-input v-model="userForm.name"></el-input>
                </el-form-item>
                <el-form-item label="游戏职业">
                    <el-input v-model="userForm.name"></el-input>
                </el-form-item>
            </el-form>
        </el-dialog>
    </div>
</template>

<script>
export default {
    components: {},
    data() {
        return {
            userForm: {},
            dialogUserForm: false,
        }
    },
    mounted() {

    },
    methods: {
        clickAdd(){
            this.dialogUserForm = true
        },
    },
}
</script>

<style scoped></style>